/**
 * @file    app_thigh.h
 * @author  yhy
 * @brief   腿部系统模块头文件
 * @version 1.00
 * @date    2025-07-30
 *
 * @copyright Copyright (c) 2025
 *
 */
#ifndef __APP_THIGH_H__
#define __APP_THIGH_H__

#include "app_airbag_system.h"

/**
 * @brief 气袋索引
 *
 */
typedef enum
{
    THIGH_AIRBAG_IDX_0 = 0U,
    THIGH_AIRBAG_IDX_MAX,
} thigh_airbag_idx_e;

/**
 * @brief 腿部操作
 *
 */
typedef enum
{
    THIGH_MODE_UP   = 1U,
    THIGH_MODE_DOWN = 2U,
    THIGH_MODE_KEEP = 3U,
    THIGH_MODE_MAX,
} thigh_mode_e;

result_e       app_thigh_init(void);
result_e       app_thigh_set_mode(thigh_mode_e mode);
result_e       app_thigh_stop(void);
void           app_thigh_handle(void);
thigh_mode_e   app_thigh_get_mode(void);
airbag_state_e app_thigh_get_airbag_state(thigh_airbag_idx_e airbag_idx);
uint32_t       app_thigh_get_air_pressure(thigh_airbag_idx_e airbag_idx);

#endif
